package com.college.vod.client;

import com.college.commonutil.result.Result;
import com.college.vod.entity.EduCourse;
import com.college.vod.entity.EduVideo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
@FeignClient(name = "service-edu")
public interface ServiceEduClient {

    //根据课程id，修改播放量
    @GetMapping("/eduservice/indexFront/viewcount/{courseId}")
    public void viewcount(@PathVariable("courseId") String courseId);
    //根据云端id，查询小节信息
    @GetMapping("/eduservice/video/getVideoInfoBySourse/{id}")
    public EduVideo getVideoInfoBySourse(@PathVariable("id") String id);
    //根据课程id，获取播放历史集合
    @GetMapping("/eduservice/course/getCourseInfoHistory/{courseId}")
    public List<EduCourse> getCourseInfoHistory(@PathVariable String courseId);
}
